2) Add a -n flag to iptables -L to skip DNS lookups
case "$command" in
online)
- if brctl show "$bridge" | grep "$vif" >&/dev/null
+ if brctl show | grep "$vif" >&/dev/null
then
- log debug "$vif already attached to $bridge"
+ log debug "$vif already attached to a bridge"
exit 0
fi
# binary is not sufficient, because the user may not have the appropriate
# modules installed. If iptables is not working, then there's no need to do
# anything with it, so we can just return.
- if ! iptables -L >&/dev/null
+ if ! iptables -L -n >&/dev/null
then
return
fi